Repository navigation
Unify knowledge discovery and delivery through find and read - #709
jiaran-king wants to merge 13 commits into
Conversation
Use find for discovery and read for the selected body or resource. Keep explicit bundle assembly, historical imports, and the benchmark delivery contract. Agent-assisted-by: Codex / unknown [effort=unknown] (author) Signed-off-by: Zhou ziheng <[email protected]>
Agent-assisted-by: Codex / unknown [effort=unknown] (author) Signed-off-by: Zhou ziheng <[email protected]>
Skill evaluationPLANNED: not executed; there are no task outcomes yet.
Author verification steps (nonpaid; not yet run)
python tools/build_skill_index.py --source-revision cbeb57eb5232b2a61ab21395c1b2f31745503f56 --checkThe declared source pin matches this head's canonical library bytes. The command has not run: retain its exit code and full drift/success output. It checks the generated projection, not claim truth or skill efficacy. Evidence and logs · Retention: 30 days. Plan bindings, budget, frozen exam and advisory detailsAdvisory: obtain missing evidenceRetained evidence availability: planned / unexecuted. No approval or merge authorization is issued.
Model/settings:
Automatic execution / cumulative PR budget: {"reason":"Trusted configuration or pricing missing, invalid or expired","remaining_usd":"unknown","reserved_or_unresolved_usd":"unknown","spent_or_legacy_usd":"unknown","state":"blocked"}Projection check selection (not an executed result): {"declared_in":"src/inferrsi/knowledge/data/skill_library/_compiled/_provenance.json","source_revision":"cbeb57eb5232b2a61ab21395c1b2f31745503f56","status":"ready"}Provider/settings: Uncovered / unsupported paths (137)
|
Follow published read continuations in the wheel and decision-card checks. Exercise service ranking with a session root, record the retired research helper in the compatibility test, and regenerate the coverage digest. Agent-assisted-by: Codex / gpt-6.2-sol [effort=max] (author) Signed-off-by: Zhou ziheng <[email protected]>
|
@david6666666 @Dong1017 For #686, we propose retiring the old query commands rather than keeping aliases. With #507 already sharing the ranking logic, the remaining problem was that callers still had to choose between several discovery and delivery contracts. This PR uses |
|
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced). Yes, keep them for now. #709 should not retire the old query commands; #379 accepted them as compatibility and fallback routes. The Dong-bot (authorized delegate): the exit-2 retirement is not accepted in this PR. A separate compatibility decision has to come first. DetailsWhy the old forms stay
Kept by this PR (no objection)
What would unblock the retirement
Not verified here
|
Check returned resources for every cited local receipt. Preserve archived captures while showing empty receipts separately in session summaries and excluding them from dashboard citation targets. Agent-assisted-by: Codex / gpt-6.2-sol [effort=max] (author) Signed-off-by: Zhou ziheng <[email protected]>
zengchuang-hw
left a comment
There was a problem hiding this comment.
NO PASS
dot, acting for zengchuang-hw.
首次 Ready 检视:base 7e2c4ab6fdab68da10b13e1a03d21dd6f8fd6c22 → head 48b6314e8b8a07347785f82385a95e3b951bb233。范围:#686 的统一发现入口、兼容性以及受管交付边界。
- 新默认入口不等于移除旧入口。 live parser 把
knowledge search/knowledge research留给历史解析,现有脚本运行会失败。#379 的兼容决定 和 #709 的范围决定 都保留旧入口作为兼容和回退。请保留旧命令的参数、输出与退出码,用原命令跑兼容回归;仓内示例和插件可继续迁到find → read。 - 合入候选尚未证明保留 #708 的 Windows UTF-8 修复。 当前分支早于 #708,GitHub 也尚不能构造无冲突的合并结果。PR 改了 CANNBot 的公开入口回归,但 head 的 worker 仍以
-I -B启动,没有-X utf8。这不是说 PR diff 删除了该参数。更新到含 #708 的 main 并解决集成冲突后,请用候选安装包的find QUERY --backend ascend跑合成中文标题,确认真实子进程仍有-I -B -X utf8、标题无损返回。
实际:静态对照兼容入口和 CANNBot 路径;用真实隔离 Python 子进程和替身采集运行两份原始 worker(main 3efb03ea、本 PR head)的 _run / _strict。模拟缺 UTF-8 模式时输出 GBK,main 正确返回中文,PR 分支拒绝 JSON。未跑候选 wheel、真实 Windows 索引、受管交付全链或完整套件;本轮不把这些未验证项称为通过。
|
@zengchuang-hw Thanks for the review. I agree we need to preserve #708's Windows UTF-8 fix; I’ll verify that CANNBot titles survive the subprocess boundary through On compatibility, #379 did retain the legacy query forms. The rationale for retiring the legacy query routes is that sharing a ranker did not fix the bugs caused by having several ways to search and deliver the results. #686 documents how agents could pick a route that found the right material but did not deliver or retain it as expected. In #696 we reproduced five hits and zero bytes returned by The proposal is to have one way to search ( |
Keep explicit failed-final continuation in service dispatch while validating the frozen ranking policy for the scoped knowledge workflow. Agent-assisted-by: Codex / gpt-6.2-sol [effort=max] (author) Signed-off-by: Zhou ziheng <[email protected]>
Exercise the search-only rejection before reading the paged body and citing its delivery. Clarify the session, MindIE and explicit bundle boundaries in CLI help and the operation guide. Agent-assisted-by: Codex / gpt-6.2-sol [effort=max] (author) Signed-off-by: Zhou ziheng <[email protected]>
zengchuang-hw
left a comment
There was a problem hiding this comment.
NO PASS
dot, acting for zengchuang-hw.
回应更新与兼容方案讨论。上轮检视的 48b6314e8b8a07347785f82385a95e3b951bb233 → 本轮 6252c77dbaece6d4f305b8fd4ce08c01f6b85398,当前 base 3efb03ea71356786b19b705e53f65267c17d19bf。
已解除:CANNBot UTF-8。 当前启动参数保留 -I -B -X utf8,新增 Find 回归覆盖中文标题。独立从本 head 提取原始 worker,以真实隔离 Python 子进程验证参数和中文 JSON 往返;仅采集器使用标准库替身。未独立重跑安装包、Windows 和官方索引。
仍阻塞:旧命令在实时入口被移除。 parser仍只在历史解析模式登记 knowledge search / knowledge research。同意只维护一个搜索和交付实现,但 #379 与 本 PR 的范围决定要求当前保留兼容。可以保留薄的兼容入口或转换层,复用同一底层并核对旧参数、响应和退出码;对受管旧命令,继续断言零正文不登记为交付。另一条路是先记录明确取代旧决定的兼容方案,再有意移除。本轮没有发现该取代决定,未跑全部兼容 fixture 或受管交付全链,因此不批准。
|
Posted by an automated agent acting on behalf of @Dong1017 (model claude-opus-5-5), at the owner's direction. 负责人意见:
合入顺序。 建议 #709 先于 #702 的 P1 冻结合入(目前 #702 只到 P0),P1 直接冻结 @jiaran-king @zengchuang-hw @david6666666 FYI。 2026-11-26 编辑:第 3 点按负责人更正改为移除旧查询命令。 |
|
Posted by an automated agent acting on behalf of @Dong1017 (model claude-opus-5-5), at the owner's direction. 更正(负责人决定):#709 可以移除旧查询命令,不保留别名。 我上一条协调评论第 3 点写成"暂时保留",判断有误,已改正。#702 的 P1 尚未冻结,#709 先合入时 P1 直接冻结新的
|
Delegate discovery and exact resource reads to the KnowledgeReader. Register the observed bytes under the session lock and reserve historical or empty receipts for audit. Agent-assisted-by: Codex / gpt-6.2-sol [effort=max] (author) Signed-off-by: Zhou ziheng <[email protected]>
david6666666
left a comment
There was a problem hiding this comment.
Dot, acting for @david6666666 under delegated PR review.
PR review verdict — DO NOT PASS. Score withheld. Base 3efb03ea71356786b19b705e53f65267c17d19bf, head bf3204b9327b21c513969915ee1868a469de8616.
The owner’s updated decision permits retirement of the old query commands, and this revision moves the session write into a Harness entry point. The remaining inline question is about the managed Reader contract. Total withheld: material archive/fixture and full migration surface coverage remain incomplete.
| def read_in_session(args, reader): | ||
| if not args.search_ref: | ||
| raise ValueError("A session read requires the --search-ref returned by Find") | ||
| if args.layer or args.finding or args.compact or args.max_bytes is not None: |
There was a problem hiding this comment.
Does this guard intentionally defer the agreed managed Reader capability to #713? The owner’s coordination note requires managed reads to use the Reader’s L0–L3 and delivery contract, but this route rejects every explicit --layer or --finding before calling Harness. Please either carry the supported options through the public Reader path and retain a pinned managed-read regression, or link a recorded deferral with the exact capabilities in this PR.
There was a problem hiding this comment.
Thanks, David. Yes, managed --layer and --finding are intentionally deferred to the shared Reader work in #713 (confirmed handoff). #713 will define L0–L3 and finding selection and add a pinned managed-read case that checks the exact bytes and delivery receipt. We'll wire the managed find → read path to that interface once it lands. This PR keeps the existing standalone L1/finding reads unchanged and uses pinned body or resource reads in managed sessions.
zengchuang-hw
left a comment
There was a problem hiding this comment.
PASS
dot, acting for zengchuang-hw.
回应负责人范围更新,对比上轮检视的 6252c77dbaece6d4f305b8fd4ce08c01f6b85398 至 bf3204b9327b21c513969915ee1868a469de8616,base 3efb03ea71356786b19b705e53f65267c17d19bf。
- 旧查询的退役现由负责人明确接受:迁移提示仍为退出码 2,显式组装保留,历史回执可审计但不能冒充新交付。上轮只剩的兼容范围阻塞因此解除,不是将移除描述成向后兼容。
- Apps改调 Harness 公开入口;Harness在锁内核对会话并提交状态,Find/Read 通过 Reader。CANNBot UTF-8 worker 在本次增量未变。
- 本地运行从当前 head 提取的普通会话 citation 校验:有实际交付内容且绑定原 Find 的 Read 通过;仅有 Find、历史捕获、空交付、来源不匹配均拒绝,读取边界使用替身。另静态核对了服务用的固定源读取和历史展示分支;未重跑安装包、真实外部索引、整套会话或设备验收。
Keep service ranking assertions and the indexer pinned-read measurement working after the Apps helpers moved. Agent-assisted-by: Codex (author) Signed-off-by: Zhou ziheng <[email protected]>
Keep both the pack fingerprint regression and the retrieval evaluator checks. Agent-assisted-by: Codex (author) Signed-off-by: Zhou ziheng <[email protected]>
|
@zengchuang-hw @david6666666 Could you re-review For the layer/finding question, the #713 handoff and service-reuse verification are recorded. This PR keeps the existing service-reuse Find/Read and its fingerprint-free receipts; atomic layer/finding selection is follow-up work. |
zengchuang-hw
left a comment
There was a problem hiding this comment.
PASS
dot, acting for zengchuang-hw.
回应复审邀请。前次批准的 bf3204b9 → 当前 f5d19e91482c75408cb943f3fe442838cb252ce3,base 54342cc573896c953cb0e2fb8734ef28262b5bda。
两条服务排序回归改走公开 Reader,保留默认命中和无内容指纹、零权重为空、溢出时报错的原断言。随主线的描述符迁移也核对了旧 Harness 路径与新 resources 路径都参与 Indexer 证据指纹。正式切换到原子层/finding 的接线不在本次 approved 增量。
本地提取本提交的 Reader 方法用替身后端验证固定查询、保留目录和指定权重被原样转发,不支持的 kind 被拒绝;静态核对实际断言。未独立重跑完整排序 fixtures、安装包或真实服务。
Keep verified Find and Read receipts on the managed request commit path alongside the Records, Executor, and Evaluator migrations. Agent-assisted-by: Codex (author) Signed-off-by: Zhou ziheng <[email protected]>
Agent-assisted-by: Codex (author) Signed-off-by: Zhou ziheng <[email protected]>
Keep the typed session boundary and route scoped Find and Read through Manager with the existing receipt checks. Agent-assisted-by: Codex (author) Signed-off-by: Zhou ziheng <[email protected]>
|
@zengchuang-hw @david6666666 Could you re-review I reran #696 from the installed wheel in both CPU campaign and benchmark sessions. A Find receipt was rejected as a round citation. Reading 3,900 bytes produced a valid citation, and the committed receipt was visible from the round status command. The #713 handoff for layer/finding selection is unchanged. Thanks! |
zengchuang-hw
left a comment
There was a problem hiding this comment.
PASS
dot, acting for zengchuang-hw.
回应本轮复审邀请。固定范围 ba4637e → b2a6708。
对照上轮检视的 f5d19e9,复审至 b2a6708 的 P8/P9 集成。Apps 的 scoped Find/Read 改走 Manager 公开的 knowledge_operation;受管普通与 service-reuse 会话仍持同一会话锁读取并提交回执,普通会话继续核对冻结指纹,服务 Find 使用独立临时来源,真实 Read 才能成为轮次交付。旧查询按负责人范围决定保留迁移提示和历史只读审计,不把旧快照或仅 Find 当成新交付;原子层和 finding 接线仍是后续。
用当前 head 的实际操作函数接入合成会话及 Reader 替身,分开验证普通和服务 Find/Read 都在锁内顺序执行,活动/预算门通过后才提交;错配旧指纹在调用 Reader 前拒绝;仅服务 Find 获得临时保留路径。静态追查 Apps→Manager 接线、诊断/条件绑定和旧命令处置。本轮未重跑完整安装、外部索引或真实服务。
|
@amy-why-3459 Could you review #709 at |
amy-why-3459
left a comment
There was a problem hiding this comment.
Dot, acting for @amy-why-3459.
回应 b2a6708 的复审。查了当前 Manager 路径:Find/Read 持同一会话锁,Read 从已登记的 Find 取得引用与修订,提交轮次时 Find 回执不能代替正文 Read 回执。旧 base 上的 Ready CI 确实通过。
合入前请验证与刚合入的 #746 共存。 main 的 477446f6 已让独立 Find 通过 standalone_find=True 接入项目明确启用的 MindIE。b2a6708 则重写了这条 CLI 路径,频道调用目前只传 source;两个固定范围共同修改了 CLI、MindIE 适配、频道和 Find 等 10 个文件,GitHub 当前标为不可合并。处理冲突时,请分别跑两条实际 CLI 回归:未带 --session 的普通 Find 在项目明确启用后保留 MindIE 默认导航和独立过滤计数;带 --session 的受管 Find 仍不继承该默认频道,只按冻结设置返回引用,再由匹配的 Read 交付正文。旧基线的绿灯不能验证这两条同装行为。当前不批准。
Keep project opt-ins and condition counts in standalone Find alongside managed session receipts. Recognize MindIE condition counts when importing recorded text results. Agent-assisted-by: Codex (author) Signed-off-by: Zhou ziheng <[email protected]>
|
@amy-why-3459 @zengchuang-hw Could you re-review I reran both CLI paths from the installed wheel with a mocked external source. Standalone |
amy-why-3459
left a comment
There was a problem hiding this comment.
LGTM
Dot, acting for @amy-why-3459.
复核 477446f6 → 85f78d07。上轮指出的 #746 集成冲突已解决:新普通 Find 仍只在项目明确启用后通过 standalone_find=True 接入 MindIE,保留单独的条件过滤计数;受管 Find 走持锁的 Manager,使用冻结的会话设置,不继承普通 Find 的默认频道。查了重基后的 CLI 接线、Find/Read 回执路径和新增归档回归:导航保留原生修订和可见引用,但不记成已交付正文;只有匹配已登记 Find 引用和修订的 Read 才可成为轮次引用。
Ready CI 的日志确认试合并 799dddb0 来自上述两个提交,两套 Linux 全量、安装包和其他 Ready 作业均通过;当前提交的 knowledge-model-policy 也通过。本次批准覆盖 #709 当前提交,不代替对真实外部服务或整库切换的验收。
Governing Issue and delivery slice
Refs #686
Anchors touched: A2, A4, and A7. #686 records the proposed CLI migration and the managed delivery requirements.
InferRSI gave agents different knowledge commands for ordinary lookup, campaign work, and benchmarks. Some only listed hits. Others assembled a context bundle and wrote a session receipt. In the original CUDA reproduction, the first hit had a 13,166-byte body, but the old 64 KiB bundle limit excluded it because the body and required files totaled 320,040 bytes.
This PR makes
findthe knowledge-query entry point andreadthe way to open a hit. It covers command migration, delivery of card bodies and linked reference files, and the records used to verify what reached a managed round.Knowledge authorship declaration
Changed artifacts and evidence
find,knowledge search,knowledge research, and question-basedcontextorcollect.find QUERY, then run the selected hit'sread_args. Open linked files on demand. Standalone lookup and reads are read-only.campaign knowledge,benchmarks session knowledge, and question-basedcampaign capture-contextcould search, assemble, and record in one step.find QUERY --session DIRrecords ordered hits and pins their source and revision. Its scopedreadrecords the bytes returned for each file and page.cannbot searchandmindie query.find QUERY --backend ascendroute with a project grant. MindIE project grants enabled withmindie enable --default-find --backend ascendjoin ordinary Find. MindIE callers move their native JSON requests tofind --input FILE. CANNBot Find · MindIE text navigationcollectaccepted both questions and selected references.collect --id REF --revision REF=REVto assemble selected material under a byte limit. Manualcampaign capture-context --id-ref REFstill saves a snapshot of a selected bundle.Run the chosen hit's
read_argsto open its body. Add--resource references/benchmark-commands.mdto those arguments to open the linked reference file. For a paged file, run the returnednext_read_argsuntil the file is complete. Each continuation keeps the revision, source, and any session search reference. Thecollectbyte limit applies only to explicit assembly.In managed sessions, the frozen knowledge policy still governs access. A knowledge-disabled session skips external lookup. The Harness registers search and read receipts under the session lock after checking the diagnosis, ranking policy, and deadline. Apps uses the KnowledgeReader for discovery and exact-version reads. Search receipts report zero delivered bytes. Empty reads are recorded as
empty_contextfor audit. When a passage informs a candidate, cite it in the hypothesis and attach its delivery withround --knowledge-refwhere the round accepts explicit references. Service-reuse rounds retain the prepared material at its captured version.Filtered inventories, selected Markdown exports, historical receipt import, and the separate MindIE MCP integration remain available.
CLI retirement. Retired query commands exit with status 2 and a migration hint to
findandread. Explicit assembly and manual snapshots remain available. Historical receipts and traces can be audited and replayed. New rounds require a scoped read receipt with delivered content. Dong’s decision on #709Checks and dependencies
Current head
85f78d07on main477446f6Earlier heads
Manager base sync
b2a67088on mainba4637e2Both hosted Ready full checks passed on this head. Ready CI
status --round-receipt 1matched the stored observation. The CUDA example returned its 13,166-byte body and 8,466-byte attachment independently. Historical replay and import preserved the original records. #696Service execution and evaluation base sync
4e0d6498Both hosted Ready full checks passed on this head. Ready CI
Repository-pack base sync
f5d19e91on main54342cc5git diff --checkpassed. A Python 3.11 wheel installed outside the checkout exposed all seven packaged repository descriptors and opened the pinned body from acgroupv2Find result.Test-fix head
5e6c6e11bf3204b9both failed in the same two tests because they still imported the removed Apps helper. Both tests now callKnowledgeReader.find()and retain the configuration, no-fingerprints, and score-overflow assertions. Prior full checksKnowledgeReader.read_hit(), with matching CLI and API search outputs. Ruff andgit diff --checkpassed.Runtime head
bf3204b9--byte-range 0 3900returned 3,900 UTF-8 bytes. Submitting the Find receipt exited 2 without consuming a round. Submitting the read receipt recorded it in round one. The retired campaign and benchmark search commands also exited 2. #696context_limitfor the 320,040-byte required group. Opening an empty linked file returned zero bytes with anempty_contextreceipt. Both forms of citation of a historical one-step receipt were rejected for a new round. A round from the installed baseline package was replayed and imported with the historical control files and receipt unchanged.git diff --checkpassed. #384 · #670find --backend ascendon macOS and verified-I -B -X utf8on the real CANNBot child. The local feat(harness): allow service campaigns to continue after a failed final #705 tests stopped at the baseline cleanup check withPermissionError, which also reproduced on unmodifiedmainat3efb03ea. The hosted Linux results listed below apply to earlier heads. #705 · #708Earlier retrieval and delivery checks
CUDA retrieval and paging. On the reduced worktree, the original query returned two hits. The first hit delivered its full 13,166-byte body, and its relative link opened the 8,466-byte linked reference file separately. A 153,600-byte fixture was reassembled byte for byte from 26 executable read pages through the host.
Live CPU NumPy Softmax optimization and replay. The supplied task specification did not give the agent a search command, query terms, or a target card. In the live run on
cbdabc3b, the agent made its own query, got five hits, read three pages, and cited one passage in its hypothesis. The reduced worktree replayed those original tool returns and recovered one verified use.Benchmark delivery and service reuse. Read serves the requested file independently of the experimental cap. Targeted regressions verify that benchmark credit requires complete delivery of the pinned card under the frozen query and scenario, before the first verified round and within the frozen byte limit. Late, partial, and over-budget deliveries remain ineligible. A later retry leaves the original judgment intact. The tests also cover historical single-capture receipts and reopening a retained service version after the live package changes. #670
Reduced worktree validation. 212 focused tests passed before the publication snapshot. The publication snapshot preserved the reviewed changes and regenerated the same catalog inputs with a source revision reachable from this branch.
Publication head
0ddfce1b87c7on base7e2c4ab6fdab. Ruff, diff whitespace, and pinned skill-index validation passed. A targeted rerun was started on this head.Local full suite. The run was still in progress at publication. Observed failures include an unavailable Homebrew Node dependency and macOS sandbox rejection of
psin CANNBot cleanup tests. Full-suite failures still need triage.CI fix validation at
48b6314e8b8a. All five previously failing tests passed locally. The sdist-built wheel passed the complete outside-checkout smoke on Python 3.10 and 3.11, each with 137 records and 775 resources. Ruff, the coverage regeneration check, andgit diff --checkpassed. Hosted CI passed on that head.Conflict and empty-receipt follow-up at
6252c77dbaec. 54 focused tests passed. A clean install of the candidate wheel returned a synthetic Chinese CANNBot title unchanged throughfind --backend ascend; the subprocess used-I -B -X utf8. The Linux full checks for Python 3.10 and 3.11 passed on6252c77dbaec. CI for6252c77dbaecRemaining work and Issue closure
The maintainer accepted the CLI retirement and continued read-only access to historical receipts. Current-head acceptance covers scoped delivery and round attribution, frozen benchmark delivery, and fingerprint-free service reads. Atomic layer/finding selection remains a follow-up. #713 handoff and service-reuse verification The paired benchmark acceptance is covered by delivery regressions. Maintainer decision